currentDateTimeString
Extension function to format a LocalDateTime object as a string.
Return
The formatted date-time string.
Example usage:
val dateTimeString = LocalDateTime.now().currentDateTimeString("yyyy-MM-dd hh:mm:ss")
Content copied to clipboard
Parameters
pattern
The pattern to format the date-time string.